package com.example.demo.controller;

import org.springframework.data.domain.Page;

import java.util.List;

public interface BaseController<T> {

    public T findByID(int id);

    public List<T> findAll() ;


    public T save( T t) ;

    public boolean deleteByid(int id) ;


    public T updateById(T t);


    public Page<T> findAllByPage(int pageNum) ;
}
